package com.sht.product.yuea.currentAppointment.dao;

import java.util.List;

import com.sht.common.dao.mybatis.BaseDao;
import com.sht.product.yuea.currentAppointment.entity.AvailableTime;
import com.sht.product.yuea.currentAppointment.entity.CurrentAppointment;

public class CurrentAppointmentDao extends BaseDao<CurrentAppointment> implements ICurrentAppointmentDao{

	@Override
	public List<CurrentAppointment> getCurrentAppointments(String userOpenID) {
		return getSqlSession().selectList(getStatement("selectByUserId"), userOpenID);
	}

	@Override
	public List<AvailableTime> getAvailableTime(List<String> date) {
		return getSqlSession().selectList(getStatement("selectAvailableTime"),date);
	}

}
